function searchXiaoJieJie(age:number):string{
    return '找到了'+age+'岁的小姐姐' 
}
let age_:number = 18
let result:string = searchXiaoJieJie(age_)
console.log(result)

// 可选参数
function searchXiaoJieJie2(age:number,stature?:string):string{
    let yy:string = ''
    yy = '找到了'+age+'岁'
    if(stature !=undefined){
        yy = yy + stature
    }
    return yy+'的小姐姐'
}
result  =  searchXiaoJieJie2(22,'大长腿')
console.log(result)

// 默认参数
function searchXiaoJieJie3(age:number=18,stature:string='大胸'):string{
    let yy:string = ''
    yy = '找到了'+age+'岁'
    if(stature !=undefined){
        yy = yy + stature
    }
    return yy+'的小姐姐'
}
result  =  searchXiaoJieJie3()
console.log(result)

// 剩余参数
function searchXiaoJieJie4(...xuqiu:string[]):string{
    let  yy:string = '找到了'
    for (let i =0;i<xuqiu.length;i++){
        yy = yy + xuqiu[i]
        if(i<xuqiu.length){
            yy=yy+'、'
        }
    }
    yy=yy+'的小姐姐'
    return yy
}
result  =  searchXiaoJieJie4('22岁','大长腿','瓜子脸','水蛇腰')
console.log(result)